import hzcRequest from "../../../utils/https";

// //查询用户信息 type:0->增加粉丝,1->增加佣金
// const selMessage = (params) => {
//   return hzcRequest.get(`/api/message/selMessage`, params);
// };

// //删除消息
// const delMessageDelete = (params) => {
//   return hzcRequest.delete(`/api/message/delMessage?msgId=${params}`);
// };

// //已读消息
// const readMessage = (params) => {
//   return hzcRequest.put(`/api/message/readMessage?msgId=${params}`);
// };

// //清除全部未读
// const readAllMessage = (params) => {
//   return hzcRequest.put(`/api/message/readAllMessage`, params);
// };

//添加银行卡
const saveBank = (data) => {
  return hzcRequest.post(`/api/userBank/saveBank`, data);
};

// /userBank

const userBank = (data) => {
  return hzcRequest.post(`/api/userBank`, data);
};

// /userBank/list
//银行列表
const userBanklist = (params) => {
  return hzcRequest.get(`/api/userBank/list`, params);
};

//选择银行

const banklist = (params) => {
  return hzcRequest.get(`/api/bank/list`, params);
};
//选择银行所在省
const bankprovincelist = (params) => {
  return hzcRequest.get(`/api/bank/province/list`, params);
};
//选择银行所在市
const bankcitylist = (params) => {
  return hzcRequest.get(`/api/bank/city/list`, params);
};


//选择银行支行
const delbankcard = (data) => {
  return hzcRequest.delete(`/api/userBank/`+data.id,);
};


const bankbranchlist = (params) => {
  return hzcRequest.get(`/api/bank/branch/list`, params);
};
export {userBank, saveBank,banklist,bankprovincelist,bankcitylist,bankbranchlist,userBanklist,delbankcard };
